import App from './App'

import Vue from 'vue'

import store from '@/store'

Vue.config.productionTip = false

// #ifndef VUE3
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif


// 导入uViews
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
uni.$u.config.unit = 'rpx'

import dayjs from 'dayjs'
Vue.prototype.dayjs = dayjs

// 导入全局过滤器
import filters from '@/utils/filters.js';
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key]);
}) 
 
// 导入全局组件
import '@/components/index.js';

// 导入全局混入
import myUni from './mixins/my-uni.js';	
import listPage from './mixins/list-page.js'
// #ifdef MP-WEIXIN
import share from './mixins/share.js'
Vue.mixin(share);
// #endif
Vue.mixin(myUni);
Vue.mixin(listPage)


// #ifdef MP-WEIXIN
// 小程序胶囊按钮
Vue.prototype.menuButton = uni.getMenuButtonBoundingClientRect()
// #endif







